import request from '@/utils/request'
export default {

  saveVideo(video) {
    return request({
      url: `/admin/edu/video/save`,
      method: 'post',
      data: video
    })
  },
  getVideo(id) {
    return request({
      url: `/admin/edu/video/get/${id}`,
      method: 'get'
    })
  },
  updateVideo(video) {
    return request({
      url: `/admin/edu/video/update`,
      method: 'put',
      data: video
    })
  },
  deleteVideo(id) {
    return request({
      url: `/admin/edu/video/remove/${id}`,
      method: 'delete'
    })
  }

}
